const path = require('path')
module.exports = {
  publicPath: './',
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [path.join(__dirname, './src/styles/_variable.less')]
    }
  },
  chainWebpack: config => {
    config.devServer.disableHostCheck(true)
  },
  configureWebpack: {
    externals: {
      qc: 'QC'
    }
  }
  // devServer: {
  //   proxy: 'http://pcapi-xiaotuxian-front.itheima.net/'
  // }
}
